home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Arashi 1.1.1 / source code / For your think c folder / Misc / StdInit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-03  |  971 b   |  55 lines  |  [TEXT/KAHL]

  1. /*/
  2.      Project Arashi: StdInit.c
  3.      Major release: Version 1.1d2, 9/5/95
  4.  
  5.      Last modification: Monday, April 3, 1995, 22:58
  6.      Created: Thursday, April 23, 1987, 17:38
  7.  
  8.      Copyright © 1987-1995, Juri Munkki
  9. /*/
  10.  
  11. #define    STACKSPACE    32768L
  12.  
  13. void    DoInits();
  14.  
  15. void    DoInits()
  16. {
  17. #ifdef DefltStack
  18.     SetApplLimit(GetApplLimit() - (STACKSPACE - DefltStack));
  19.     InitGraf(&thePort);
  20. #else
  21.     SetApplLimit(GetApplLimit() - (STACKSPACE - LMGetDefltStack()));
  22.     InitGraf(&qd.thePort);
  23. #endif
  24.     InitCursor();
  25.     InitFonts();
  26.     InitWindows();
  27.     InitMenus();
  28.     TEInit();
  29.     InitDialogs(0L);
  30.     InitCursor();
  31.     MaxApplZone();
  32. }
  33.  
  34. void    DoInitsStackSize(
  35.     long    stackSize)
  36. {
  37. #ifdef DefltStack
  38.     SetApplLimit(GetApplLimit() - (stackSize - DefltStack));
  39.     InitGraf(&thePort);
  40. #else
  41.     SetApplLimit(GetApplLimit() - (stackSize - LMGetDefltStack()));
  42.     InitGraf(&qd.thePort);
  43. #endif
  44.  
  45.     InitCursor();
  46.     InitFonts();
  47.     InitWindows();
  48.     InitMenus();
  49.     TEInit();
  50.     InitDialogs(0L);
  51.     InitCursor();
  52.     MaxApplZone();
  53. }
  54.  
  55.